<script setup lang="ts">
import { useDark } from '@vueuse/core';
import { computed } from 'vue';
import { RouterView } from 'vue-router'
const isDark = useDark()
// const toggleDark = useToggle(isDark)

const theme = computed(() => {
  return isDark.value === true ? 'dark' : 'light'
})
</script>

<template>
  <van-config-provider :theme="theme">
    <RouterView />
  </van-config-provider>
</template>

<style scoped></style>
